<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        input {
            border-bottom-style: inset;
            border-top-style: none;
            border-left-style: none;
            border-right-style: none;
        }

        td {
            padding-left: 2px;
            padding-right: 2px;
            padding-top: 6px;
            padding-bottom: 6px;
        }

        .printBody {
            width: 210mm;
            height: 297mm;
            margin: 0 auto;
        }
        /*.printBody {*/
        /*    width: 80%;*/
        /*    margin-left: 3%;*/
        /*}*/
        .container {
            text-align: left;
            width: 100%;
            font-size: 14px;
        }

        .hhl_button {
            position: relative;
            float: right;
            right: 13%;
            padding-top: 20px;
        }

        .save_button {
            margin-right: 50px;
        }

        .jbxx {
            display: flex;
            justify-content: space-between;
        }

        .fgx {
            width: 100%;
        }

        .ty_table {
            width: 75%;
            table-layout: fixed;
            word-wrap: break-word;
            word-break: break-all;
        }
        .sjxt_table {
            width: 90%;
            table-layout: fixed;
            word-wrap: break-word;
            word-break: break-all;
        }
        .clbz_table{
            width: 90%;
            table-layout: fixed;
            word-wrap: break-word;
            word-break: break-all;
        }
        .tk_table{
            width: 90%;
            table-layout: fixed;
            word-wrap: break-word;
            word-break: break-all;
        }
        .tb_td{
            width: 8%;
        }
        .sjxt_td{
            width: 10%;
        }
        #save{
            display: none;
        }
        #print{
            display: none;
        }
        .sj{
            width: 120px;
        }
        .container{
            font-size: 14px;
        }
    </style>
    <script src="/static/js/jquery.js"></script>
    <script src="/static/js/LodopFuncs.js"></script>
    <script src="/static/js/html2canvas.js"></script>
</head>
<body>
<div id="printBody" class="printBody">
    <div class="title" style="text-align: center;">
        <h1>急诊创伤记录表</h1>
    </div>
    <div class="container">
        <div class="jbxx">
            <span class="jcxx_ty">姓名:<span id="name">江得得</span></span>
            <span class="jcxx_ty">性别:<span id="sex">男</span></span>
            <span class="jcxx_ty">年龄:<span id="age">12</span></span>
            <span class="jcxx_ty">病床:<span id="bednum2">2</span></span>
            <span class="jcxx_blh">病案号:<span id="innum">090003574</span></span>
        </div>
        <div class="fgx">
            <hr>
        </div>
        <div>
            <table class="ty_table">
                <tr>
                    <td class="tb_td">气道:</td>
                    <td>
                        <div>
                            <input type="radio" name="qd" id="qdtc" value="qdtc">
                            <label for="qdtc">通畅</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="radio" name="qd" id="qdzs" value="qdzs">
                            <label for="qdzs">阻塞</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="radio" name="qd" id="qdbfzs" value="qdbfzs">
                            <label for="qdbfzs">部分阻塞</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>呼吸:</td>
                    <td>
                        <div>
                            <input type="radio" name="hx" id="hxzc" value="hxzc">
                            <label for="hxzc">正常</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="radio" name="hx" id="hxjp" value="hxjp">
                            <label for="hxjp">窘迫</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="radio" name="hx" id="hxjc" value="hxjc">
                            <label for="hxjc">急促</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="radio" name="hx" id="hxqm" value="hxqm">
                            <label for="hxqm">浅慢</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="radio" name="hx" id="hxw" value="hxw">
                            <label for="hxw">无</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>循环:</td>
                    <td>
                        <div>
                            <input type="checkbox" name="xh" id="xhydm" value="xhydm">
                            <label for="xhydm">有脉搏</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xh" id="xhddm" value="xhddm">
                            <label for="xhddm">桡动脉</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xh" id="xhjdm" value="xhjdm">
                            <label for="xhjdm">颈动脉</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xh" id="xhxl" value="xhxl">
                            <label for="xhxl">心率</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xh" id="xhr" value="xhr">
                            <label for="xhr">弱</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xh" id="xhw" value="xhw">
                            <label for="xhw">无</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>出血:</td>
                    <td>
                        <div>
                            <input type="radio" name="cx" id="cxw" value="cxw">
                            <label for="cxw">无</label>
                        </div>
                    </td>
                    <td colspan="3">
                        <div>
                            <input type="radio" name="cx" id="cxy" value="cxy">
                            <label for="cxy">有</label>
                            <label>(部位<input type="text" id="cxynr" name="cxynr" style="width: 60px;">)</label>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="fgx">
            <hr>
        </div>
        <div>
            <table class="sjxt_table" style="text-align: center">
                <tr>
                    <td class="sjxt_td" style="text-align: left">神经系统:</td>
                    <td>
                        <div>
                            <input type="checkbox" name="sjxt" id="sjxtyfy" value="sjxtyfy">
                            <label for="sjxtyfy">有反应</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="sjxt" id="sjxtdyyyfy" value="sjxtdyyyfy">
                            <label for="sjxtdyyyfy">对语言有反应</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="sjxt" id="sjxtwfy" value="sjxtwfy">
                            <label for="sjxtwfy">无反应</label>
                        </div>
                    </td>
                    <td width="20%">
                        <div>
                            <input type="checkbox" name="sjxt" id="sjxtdttcjyfy" value="sjxtdttcjyfy">
                            <label for="sjxtdttcjyfy">对疼痛刺激有反应</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="sjxt" id="sjxtpd" value="sjxtpd">
                            <label for="sjxtpd">偏低</label>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="fgx">
            <hr>
        </div>
        <div>
            <table class="ty_table">
                <tr>
                    <td class="tb_td">头部:</td>
                    <td>
                        <div>
                            <input type="checkbox" name="tb" id="tbsls" value="tbsls">
                            <label for="tbsls">撕裂伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="tb" id="tbcs" value="tbcs">
                            <label for="tbcs">挫伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="tb" id="tbcas" value="tbcas">
                            <label for="tbcas">擦伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="tb" id="tbgcs" value="tbgcs">
                            <label for="tbgcs">贯穿伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="tb" id="tbw" value="tbw">
                            <label for="tbw">无</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="tb" id="tbqt" value="tbqt">
                            <label for="tbqt">其他</label>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <table class="tk_table">
                <tr>
                    <td rowspan="2" class="tb_td" valign="top">瞳孔:</td>
                    <td colspan="8">
                        <label>左&nbsp;&nbsp;直径<input type="text" style="width: 30px">cm&nbsp;对光反射</label>
                        (<input type="checkbox" name="tkz" id="tkzlm" value="tkzlm">
                        <label for="tkzlm">灵敏</label>
                        <input type="checkbox" name="tkz" id="tkzcd" value="tkzcd">
                        <label for="tkzcd">迟钝</label>
                        <input type="checkbox" name="tkz" id="tkzgd" value="tkzgd">
                        <label for="tkzgd">固定)</label>
                    </td>
                    <td colspan="7">
                        <label>其他</label>
                        <input type="checkbox" name="tkzqt" id="tkzqtyj" value="tkzqtyj">
                        <label for="tkzqtyj">眼疾</label>
                        <input type="checkbox" name="tkzqt" id="tkzqtcd" value="tkzqtcd">
                        <label for="tkzqtcd">迟钝</label>
                        <input type="checkbox" name="tkzqt" id="tkzqtqs" value="tkzqtqs">
                        <label for="tkzqtqs">缺失</label>
                        <input type="checkbox" name="tkzqt" id="tkzqtzz" value="tkzqtzz">
                        <label for="tkzqtzz">肿胀</label>
                        <input type="checkbox" name="tkzqt" id="tkzqtbz" value="tkzqtbz">
                        <label for="tkzqtbz">包扎</label>
                    </td>
                </tr>
                <tr>
                    <td colspan="8">
                        <label>左&nbsp;&nbsp;直径<input type="text" style="width: 30px">cm&nbsp;对光反射</label>
                        (<input type="checkbox" name="tky" id="tkylm" value="tkylm">
                        <label for="tkylm">灵敏</label>
                        <input type="checkbox" name="tky" id="tkycd" value="tkycd">
                        <label for="tkycd">迟钝</label>
                        <input type="checkbox" name="tky" id="tkygd" value="tkygd">
                        <label for="tkygd">固定)</label>
                    </td>
                    <td colspan="7">
                        <label>其他</label>
                        <input type="checkbox" name="tkyqt" id="tkyqtyj" value="tkyqtyj">
                        <label for="tkyqtyj">眼疾</label>
                        <input type="checkbox" name="tkyqt" id="tkyqtcd" value="tkyqtcd">
                        <label for="tkyqtcd">迟钝</label>
                        <input type="checkbox" name="tkyqt" id="tkyqtqs" value="tkyqtqs">
                        <label for="tkyqtqs">缺失</label>
                        <input type="checkbox" name="tkyqt" id="tkyqtzz" value="tkyqtzz">
                        <label for="tkyqtzz">肿胀</label>
                        <input type="checkbox" name="tkyqt" id="tkyqtbz" value="tkyqtbz">
                        <label for="tkyqtbz">包扎</label>
                    </td>
                </tr>
            </table>
        </div>
        <div class="fgx">
            <hr>
        </div>
        <div>
            <table class="ty_table">
                <tr>
                    <td rowspan="2" valign="top" class="tb_td">颈部:</td>
                    <td>
                        <div>
                            <input type="checkbox" name="jb" id="jbsls" value="jbsls">
                            <label for="jbsls">撕裂伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="jb" id="jbcs" value="jbcs">
                            <label for="jbcs">擦伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="jb" id="jbzs" value="jbzs">
                            <label for="jbzs">挫伤</label>
                        </div>
                    <td>
                        <div>
                            <input type="checkbox" name="jb" id="jbyyt" value="jbyyt">
                            <label for="jbyyt">有压痛</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="jb" id="jbqgwy" value="jbqgwy">
                            <label for="jbqgwy">气管移位</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="jb" id="jbjjmnz" value="jbjjmnz">
                            <label for="jbjjmnz">颈静脉怒张</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="jb" id="jbgcs" value="jbgcs">
                            <label for="jbgcs">贯穿伤</label>
                        </div>
                    <td>
                        <div>
                            <input type="checkbox" name="jb" id="jbzzfw" value="jbzzfw">
                            <label for="jbzzfw">正常范围</label>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="fgx">
            <hr>
        </div>
        <div>
            <table class="ty_table">
                <tr>
                    <td rowspan="2" valign="top" class="tb_td">皮肤:</td>
                    <td>
                        <div>
                            <input type="checkbox" name="pf" id="pfl" value="pfl">
                            <label for="pfl">冷</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="pf" id="pfwn" value="pfwn">
                            <label for="pfwn">温暖</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="pf" id="pfh" value="pfh">
                            <label for="pfh">汗</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="pf" id="pfsl" value="pfsl">
                            <label for="pfsl">湿冷</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="pf" id="pfyb" value="pfyb">
                            <label for="pfyb">瘀斑</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="pf" id="pfcb" value="pfcb">
                            <label for="pfcb">苍白</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="pf" id="pfch" value="pfch">
                            <label for="pfch">潮红</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="pf" id="pfzg" value="pfzg">
                            <label for="pfzg">紫绀</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="pf" id="pfcha" value="pfcha">
                            <label for="pfcha">出汗</label>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="fgx">
            <hr>
        </div>
        <div>
            <table class="ty_table">
                <tr>
                    <td rowspan="4" class="tb_td" valign="top">胸部:</td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbsls" value="xbsls">
                            <label for="xbsls">撕裂伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbzs" value="xbzs">
                            <label for="xbzs">挫伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbfchx" value="xbfchx">
                            <label for="xbfchx">反常呼吸</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbcs" value="xbcs">
                            <label for="xbcs">擦伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbgcs" value="xbgcs">
                            <label for="xbgcs">贯穿伤</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbhxyzc" value="xbhxyzc">
                            <label for="xbhxyzc">呼吸音正常</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbhxyzcjd" value="xbhxyzcjd">
                            <label for="xbhxyzcjd">降低</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbhzyzcz" value="xbhzyzcz">
                            <label for="xbhzyzcz">左</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbhzyzcy" value="xbhzyzcy">
                            <label for="xbhzyzcy">右</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbpxqz" value="xbpxqz">
                            <label for="xbpxqz">皮下气肿</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbpxqzw" value="xbpxqzw">
                            <label for="xbpxqzw">无</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbpxqzy" value="xbpxqzy">
                            <label for="xbpxqzy">有</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbpxqzyt" value="xbpxqzyt">
                            <label for="xbpxqzyt">压痛</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbpxqzjy" value="xbpxqzjy">
                            <label for="xbpxqzjy">挤压</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbxc" value="xbxc">
                            <label for="xbxc">胸穿:</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbxcz" value="xbxcz">
                            <label for="xbxcz">左</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="xb" id="xbxcy" value="xbxcy">
                            <label for="xbxcy">右</label>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="fgx">
            <hr>
        </div>
        <div>
            <table class="ty_table">
                <tr>
                    <td class="tb_td" valign="top" rowspan="4">腹部</td>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbsls" value="fbsls">
                            <label for="fbsls">撕裂伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbcs" value="fbcs">
                            <label for="fbcs">擦伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbzs" value="fbzs">
                            <label for="fbzs">挫伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbgcs" value="fbgcs">
                            <label for="fbgcs">贯穿伤</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbcmy" value="fbcmy">
                            <label for="fbcmy">肠鸣音</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbxs" value="fbxs">
                            <label for="fbxs">消失</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbcz" value="fbcz">
                            <label for="fbcz">存在</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbpl" value="fbpl">
                            <label for="fbpl">膨隆</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbjz" value="fbjz">
                            <label for="fbjz">紧张</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbct" value="fbct">
                            <label for="fbct">触痛</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbrr" value="fbrr">
                            <label for="fbrr">柔软</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbzzfw" value="fbzzfw">
                            <label for="fbzzfw">正常范围</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbfc" value="fbfc">
                            <label for="fbfc">腹穿:</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbfcz" value="fbfcz">
                            <label for="fbfcz">左</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="fb" id="fbfcy" value="fbfcy">
                            <label for="fbfcy">右</label>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="fgx">
            <hr>
        </div>
        <div>
            <table class="ty_table">
                <tr>
                    <td class="tb_td">脊柱:</td>
                    <td>
                        <div>
                            <input type="checkbox" name="jz" id="jzjx" value="jzjx">
                            <label for="jzjx">畸形</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="jz" id="jzwmxws" value="jzwmxws">
                            <label for="jzwmxws">无明显外伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="jz" id="jzzs" value="jzzs">
                            <label for="jzzs">挫伤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="jz" id="jzjt" value="jzjt">
                            <label for="jzjt">截瘫</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>骨盆:</td>
                    <td>
                        <div>
                            <input type="checkbox" name="gp" id="gpzc" value="gpzc">
                            <label for="gpzc">正常</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="gp" id="gpbwd" value="gpbwd">
                            <label for="gpbwd">不稳定</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="gp" id="gpjyt" value="gpjyt">
                            <label for="gpjyt">挤压痛</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>四肢:</td>
                    <td>
                        <div>
                            <input type="checkbox" name="sz" id="szzc" value="szzc">
                            <label for="szzc">正常</label>
                        </div>
                    </td>
                    <td colspan="2">
                        <div>
                            <input type="checkbox" name="sz" id="szgz" value="szgz">
                            <label for="szgz">骨折:</label>
                            <label>(部位:<input type="text" id="szgzbw" style="width: 60px" name="szgzbw">)</label>
                        </div>
                    </td>
                    <td colspan="2">
                        <div>
                            <input type="checkbox" name="sz" id="szjx" value="szjx">
                            <label for="szjx">畸形:</label>
                            <label>(部位:<input type="text" id="szjxbw" style="width: 60px" name="szjxbw">)</label>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="fgx">
            <hr>
        </div>
        <div style="width: 100%;text-align: center;font-size: 18px"><b>处理步骤</b></div>
        <div class="fgx">
            <hr>
        </div>
        <div>
            <table class="clbz_table">
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzkytqg" value="clbzkytqg">
                            <label for="clbzkytqg">口咽通气管</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzxffs" value="clbzxffs">
                            <label for="clbzxffs">心肺复苏</label>
                        </div>
                    </td>
                    <td colspan="2">
                        <div>
                            <input type="checkbox" name="clbz" id="clbzjmsy" value="clbzjmsy">
                            <label for="clbzjmsy">静脉输液</label>
                            <label>PV<input type="text" style="width: 30px" id="clbzjmsyPV" name="clbzjmsyPV"></label>
                            <label>CV<input type="text" style="width: 30px" id="clbzjmsyCV" name="clbzjmsyCV"></label>
                        </div>
                    </td>
                    <td colspan="2">
                        <div>
                            <input type="checkbox" name="clbz" id="clbzkxqylg" value="clbzkxqylg">
                            <label for="clbzxffs">胸腔引流管</label>
                            <input type="checkbox" name="clbz" id="clbzkxqylgz" value="clbzkxqylgz">
                            <label for="clbzkxqylgz">左</label>
                            <input type="checkbox" name="clbz" id="clbzkxqylgy" value="clbzkxqylgy">
                            <label for="clbzkxqylgy">右</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzbdgxq" value="clbzbdgxq">
                            <label for="clbzbdgxq">鼻导管吸氧</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzdjcc" value="clbzbdgxq">
                            <label for="clbzbdgxq">电击除颤</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzjybz" value="clbzjybz">
                            <label for="clbzjybz">加压包扎</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzjybzbw" value="clbzjybzbw">
                            <label for="clbzjybzbw">部位<input type="text" style="width: 50px;"
                            id="clbzjybzbwnr" name="clbzjybzbwnr"></label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzmzxy" value="clbzmzxy">
                            <label for="clbzmzxy">面罩吸氧</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzxdjh" value="clbzxdjh">
                            <label for="clbzxdjh">心电监护</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzjbgd" value="clbzjbgd">
                            <label for="clbzjbgd">夹板固定</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzjbgdbw" value="clbzjbgdbw">
                            <label for="clbzjbgdbw">部位<input type="text" style="width: 50px;"
                                                             id="clbzjbgdbwnr" name="clbzjbgdbwnr"></label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzqgcg" value="clbzqgcg">
                            <label for="clbzqgcg">气管插管</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzjbzd" value="clbzjbzd">
                            <label for="clbzjbzd">颈部制动</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzqy" value="clbzqy">
                            <label for="clbzqy">牵  引</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzqybw" value="clbzqybw">
                            <label for="clbzqybw">部位<input type="text" style="width: 50px;"
                                                             id="clbzqybwnr" name="clbzqybwnr"></label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzrghx" value="clbzrghx">
                            <label for="clbzrghx">人工呼吸</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzsd" value="clbzsd">
                            <label for="clbzsd">沙袋</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzgpdgd" value="clbzgpdgd">
                            <label for="clbzgpdgd">骨盆带固定</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <label for="clbzqybw">血型时间<input type="text" style="width: 50px;"
                                                           id="xxsj" name="data"></label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzxdjygd" value="clbzxdjygd">
                            <label for="clbzxdjygd">胸带加压固定</label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <input type="checkbox" name="clbz" id="clbzjt" value="clbzjt">
                            <label for="clbzjt">颈托 </label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <label for="clbzqybw">配血时间<input type="text" style="width: 50px;"
                                                             id="pxsj" name="data"></label>
                        </div>
                    </td>
                    <td>
                        <div>
                            <label for="clbzqybw">输血时间<input type="text" style="width: 50px;"
                                                             id="sxsj" name="data"></label>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <table class="ty_table">
                <tr>
                    <td colspan="5"></td>
                    <td colspan="3">
                        <label for="clbzqybw">评估人员签名:<input type="text" style="width: 80px;"
                                                            id="pgrqm" name="pgrqm"></label>
                    </td>
                    <td> <label for="clbzqybw"><input type="text" class="sj"
                                                      id="qmsj" name="date"></label></td>
                </tr>
            </table>

        </div>
    </div>
    <div class="hhl_button">
        <button class="btn-emr btn-emr-green save_button" id="save">保存</button>
        <button class="btn-emr btn-emr-green" id="print">打印</button>
    </div>
</div>
</body>
<script>
    (function ($) {
        let Page = {};
        // var argUrl = getRequestUrl(window.location.href);
        Page.Event = {
            staff: {//登录人信息
                name: $('#inpatientName ').text(),
                staffid: $('.member-info-body p', parent.document).data('staffid'),
                wardcode: $(".member-info-name").attr("data-wardcode"),
                hospital_id: $(".member-info-name").data("hospitalid"),
                bedNum: $("#bedNumber").text(),
                age: $('.icon-age', parent.document).text()
            },
            init: function () {
                this.getDetail()
                $("#name").text(Page.Event.staff.name)
                $("#sex").text($("#inpatientGender").val())
                $("#age").text(Page.Event.staff.age)
                $("#bednum2").text(Page.Event.staff.bedNum)
                $("#innum").text($("#patientNum").text() || '')
                this.pageEvent()
            },
            pageEvent: function () {
                let that = this;
                $("input[name='date']").on('click', function () {
                    WdatePicker({
                        dateFmt: 'yyyy-MM-dd HH:mm'
                    });
                });
                $("button[id='save']").on('click', function () {
                    that.save();
                });
                $("button[id='print']").on('click', function () {
                    that.print();
                })
            },
            save: function () {
                let save = {};
                let that = this;
                //输入信息保存
                $("input[type='text']").each(function () {
                    save[$(this).attr('id')] = $(this).val()
                });
                //多选信息保存
                $("input[type='checkbox']:checked").each(function () {
                    save[$(this).attr('id')] = $(this).val()
                })
                //单选信息保存
                $("input[type='radio']:checked").each(function () {
                    save[$(this).attr('id')] = $(this).val()
                })
                _args = {
                    // inpatientId:argUrl.inpatientId,
                    hospitalId: Page.Event.staff.hospital_id,
                    assessmentType: 'jzcscbpgb_form',
                    assessmentTime: new Date().Format("yyyy-MM-dd,hh:mm:ss"),
                    assessmentId: Page.Event.staff.staffid,
                    assessmentName: Page.Event.staff.name,
                    assessmentDetail: JSON.stringify(save),
                }
                if ($("#recordId").val()) {
                    _args['assessmentDataId'] = $("#recordId").val()
                    that.saveItem('/template/cnStructuredCustomData/update', _args)
                } else {
                    that.saveItem('/template/cnStructuredCustomData/save', _args)

                }
                console.log(_args);
            },
            //调取保存或者修改接口
            saveItem: function (url, param) {
                let that = this
                $.ajax({
                    url: url,
                    async: false,
                    type: 'POST',
                    contentType: "application/json;charset-utf-8",
                    data: JSON.stringify(param),
                    success: function (res) {
                        if (res.state == 200) {
                            layer.msg('保存成功')
                            that.getDetail()
                        }
                    },
                    error: function (msg) {
                        layer.error("保存发生异常!", msg.responseText);
                    }
                });
            },
            //获取详情
            getDetail: function () {
                $.ajax({
                    type: "get",
                    url: '/template/cnStructuredCustomData/getListByCondition',
                    data: {
                        // inpatientId: argUrl.inpatientId,
                        assessmentType: "jzcscbpgb_form",
                    },
                    contentType: "application/json;charset=utf-8"
                }).done(function (res) {
                    if (res.state == 200) {
                        if (res.results.result && res.results.result.length > 0) {
                            $("#recordId").val(res.results.result[0].assessmentDataId)
                            let dataItem = JSON.parse(res.results.result[0].assessmentDetail)
                            //数据回显
                            for (let key in dataItem) {
                                //输入信息保存
                                $("input[type='text']").each(function () {
                                    if ($(this).attr('id') == key && key != 'recordId') {
                                        $(this).val(dataItem[key])
                                        $(this).attr('value', dataItem[key])
                                    }
                                })
                                //勾选信息保存
                                $("input[type='checkbox']").each(function () {
                                    if ($(this).attr('id') == key) {
                                        $(this).prop('checked', true)
                                        $(this).attr('checked', 'checked')
                                    }
                                })
                                //单选信息保存
                                $("input[type='radio']").each(function () {
                                    if ($(this).attr('id') == key) {
                                        $(this).prop('checked', true)
                                        $(this).attr('checked', 'checked')
                                    }
                                })
                            }
                        }
                    }
                })
            },
            print: function () {
                var _style = $($("#hideHtml input[name='hidePrintHtml']")[0]).val();
                let _html = $("#printBody").html()
                LODOP.PRINT_INIT("");
                LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "A4");
                // LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
                // SET_PRINT_MODE("PRINT_PAGE_PERCENT",'Full-Width');
                LODOP.ADD_PRINT_HTM(0, '10%', '100%', '100%', _style + _html)
                // LODOP.SET_PRINT_STYLEA(0, "ItemType", 1);
                LODOP.ADD_PRINT_TEXT("98%", "48%", 300, 30, "第#页")
                LODOP.SET_PRINT_STYLEA(0, "ItemType", 2, "FontSize", 12);
                // LODOP.PRINT_DESIGN();
                LODOP.PREVIEW();
            }

        }
        Page.Event.init();
        var staff = {
            id: $('.member-info-body p').data('staffid'),
            name: $('.member-info-body p').text()
        };
        var location_href = window.location.href;
        var arg = handleUrl(location_href);
        var bradenQBorder = parseInt(window.localStorage.getItem('bradenQ年龄界限'));
        var ageString = $('.icon-age').text();
        var age = 0;
        if (ageString.indexOf('月') > 0 ||
            ageString.indexOf('星期') > 0 ||
            ageString.indexOf('天') > 0 ||
            ageString.indexOf('日') > 0 ||
            ageString.indexOf('小时') > 0) {
            age = 1;
        } else {
            age = ageString.replace(/[^0-9]/ig, "");
            age = parseInt(age);
        }
        var score = {
            dataUrl: {
                braden: '/score/braden',
                adl: '/score/adl',
                gcs: '/score/gcs',
                pain: '/score/pain',
                bradenQ: '/score/bradenQ',
                fall: '/score/fall',
                humptyDumpty: '/score/humptyDumpty',
                childfallbed: '/score/childfallbed'
            },
            dataTitle: {
                braden: 'braden评分',
                adl: 'ADL评分',
                gcs: 'GCS评分',
                pain: '疼痛评分',
                bradenQ: 'Braden Q scale评分',
                fall: '跌倒/坠床危险评分',
                childfallbed: '小儿坠床/跌倒评分',
                humptyDumpty: 'Humpty Dumpty儿童跌倒风险评分'
            },
            init: function () {
                this.event();
            },
            openScoreIframe: function (title, url, style) {
                var patientNum = $("#bednum").text();
                var age = $('.icon-age').text();
                var bedNumber = $("#bedNumber").text();
                var patientName = $("#inpatientName").text();
                $.index = layer.open({
                    type: 2,
                    title: '<div>' + title + '<span style="margin-left: 50px;font-size:13px">姓名:</span><span style="font-size:13px">' + patientName + '<span style="margin-left: 50px;font-size:13px">年龄:</span><span style="font-size:13px">' + age + '</span><span style="margin-left: 50px;font-size:13px">病历号:</span><span style="font-size:13px">' + patientNum + '</span><span  style="margin-left: 50px;font-size:13px">床号:</span><span style="font-size:13px">' + bedNumber + '</span></div>',
                    content: url,
                    scrollbar: false,
                    shift: "",
                    area: style,
                    success: function () {//成功后的回调函数
                    },
                    'zIndex': '208'
                });
            },
            event: function () {
                var that = this;
                $('#printBody').on('click', '[data-score]', function (event) {
                    var scoreid;
                    var scoreName = $(this).attr('data-score');
                    var come = "action";
                    scoreid = $('[name="' + scoreName + 'ScoreId-text"]').val();
                    if (!scoreName) {
                        return false;
                    }
                    if (age <= bradenQBorder && scoreName == 'fall') {
                        scoreName = 'childfallbed';
                    }
                    var title = (that.dataTitle)[scoreName];
                    var url = (that.dataUrl)[scoreName] + '?inpatientId=' + arg.inpatientId + '&username=' + encodeURI(staff.name)
                        + '&userid=' + staff.id + '&inpatient_id=' + arg.inpatientId + '&score_type=' + scoreName;
                    if (come) {
                        url = url + '&come=' + come;
                    }
                    if (scoreid) {
                        url = url + '&scoreid=' + scoreid;
                    }
                    var area = ['850px', '560px'];
                    if (scoreName == 'bradenQ') {
                        area = ['920px', '510px;'];
                    }
                    if (scoreName == 'gcs') {
                        area = ['920px', '530px;'];
                    }
                    if (scoreName == 'braden') {
                        area = ['860px', '470px;'];
                    }
                    if (scoreName == 'adl') {
                        area = ['920px', '700px;'];
                    }
                    if (scoreName == 'lost') {
                        area = ['950px', '560px;'];
                    }
                    if (scoreName == 'fall') {
                        area = ['950px', '700px;'];
                    }
                    if (scoreName == 'childfallbed') {
                        area = ['850px', '600px;'];
                    }
                    if (scoreName == 'pain') {
                        url = url + '&next=Measures';
                        area = ['950px', '750px;'];
                    }
                    if (scoreName == 'humptyDumpty') {
                        area = ['950px', '700px;'];
                    }
                    if ($(this).attr('data-temp') && $(this).attr('data-temp') == 'allAssessTemplate') {//如果是评分模板入口直接return false（initScoreTem()方法在common.js）
                        initScoreTem($(this));
                        return false;
                    }
                    that.openScoreIframe(title, url, area);//打开评分页面
                    return false;
                });
            }
        };
        score.init();
    })(jQuery);
</script>
</html>
